package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;
import com.itheima.pojo.Result;

import java.time.LocalDate;
import java.util.List;

/**
 * 员工管理
 */
public interface EmpService extends IService<Emp> {
    /**
     * 员工登录
     *
     * @param emp
     * @return
     */
    Emp login(Emp emp);
    Emp register(Emp emp);
    Emp getUserByIdOrUsername(Long userId, String usernam);
    Result<Page> selectPage(Page page, String keyWord);
    // 根据员工名称获取员工 ID
    Integer findEmployeeIdByUsername(String username);
}
